#!/usr/bin/python
# coding:utf-8
# auther:DT
# 2017-08-04_03-46-59
import psutil
import subprocess
disk_gen={"/":psutil.disk_usage("/").percent,"/boot":psutil.disk_usage("/boot").percent}
print(disk_gen)

df = subprocess.getoutput("df -h |awk '{print $5,$6}'")
df_a = df.split("\n")
for i in df_a:
    print("%s  --->%s"% (i.split(" ")[1],i.split(" ")[0]))
